home *** CD-ROM | disk | FTP | other *** search
/ Designer's Club 1997 January / Designer's Club 1997 January.iso / pc / ideasrc / vr.dir / 00164_Script_164 < prev    next >
Text File  |  1996-12-13  |  2KB  |  61 lines

  1. on startmovie
  2.   global toolH, toolV
  3.   if toolH = 0 then
  4.     set toolH = 522
  5.     set toolV = 17
  6.   end if
  7.   set the locH of sprite 40 to toolH
  8.   set the locV of sprite 40 to toolV
  9. end
  10.  
  11. on stopmovie
  12.   global toolH, toolV
  13.   set toolH = the locH of sprite 40
  14.   set toolV = the locV of sprite 40
  15. end
  16.  
  17. on pressit button
  18.   puppetsound (2) "clickdn"
  19.   repeat while the mousedown
  20.     set the visible of sprite button to false
  21.     updatestage
  22.   end repeat
  23.   set the visible of sprite button to true
  24.   puppetsound (2) "clickup"
  25. end
  26.  
  27. on tools
  28.   repeat with n = 41 to 46
  29.     puppetsprite n, true
  30.   end repeat
  31.   repeat with n = 41 to 46
  32.     set the locV of sprite n to the locV of sprite 40 + 26
  33.   end repeat
  34.   set the locH of sprite 41 to the locH of sprite 40 
  35.   set the locH of sprite 42 to the locH of sprite 40 - 86
  36.   set the locH of sprite 43 to the locH of sprite 40 - 48
  37.   set the locH of sprite 44 to the locH of sprite 40 - 3
  38.   set the locH of sprite 45 to the locH of sprite 40 + 41
  39.   set the locH of sprite 46 to the locH of sprite 40 + 82
  40.   updatestage
  41. end tools
  42.  
  43. on keyDown 
  44.   if the key = 1 then set the soundLevel to (1)
  45.   if the key = 2 then set the soundLevel to (2)
  46.   if the key = 3 then set the soundLevel to (3)
  47.   if the key = 4 then set the soundLevel to (4)
  48.   if the key = 5 then set the soundLevel to (5)
  49.   if the key = 6 then set the soundLevel to (6)
  50.   if the key = 7 then set the soundLevel to (7)
  51.   if the key = "S" then
  52.     if the volume of sound 2 = 0 then
  53.       set the volume of sound 2 to the soundlevel * 36
  54.     else set the volume of sound 2 to 0
  55.   end if
  56. end keydown
  57.  
  58.  
  59.  
  60.  
  61.